/**
 * Project Name:template-web
 * File Name   :MessageStatus.java
 * Package Name:org.cn.template.component.enums
 * Date:2015年9月27日下午3:30:56
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package org.cn.template.component.enums;

/**
 * ClassName:MessageStatus <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月27日 下午3:30:56 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public enum MessageStatus
{
	success(0,"success"),error(1,"error");
	private int state;
	private String name;
	// 构造方法
	private MessageStatus(int state, String name) {
		this.state = state;
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public int getState()
	{
		return state;
	}
	public void setState(int state)
	{
		this.state = state;
	}
	public void setName(String name)
	{
		this.name = name;
	}
}
